<template>
	<view class="userSearch">
		<input type="text" placeholder="评论一下,踢你上去" v-model="text">
		<view class="icon iconfont icon-fabu" @tap="submit"></view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				text:''
			}
		},
		methods:{
			submit(){
				this.$emit('submit',this.text)
				this.text=''
			}
		}
	}
</script>

<style scoped lang="scss">
	.userSearch {
		position: fixed;
		bottom: 0upx;
		left: 0;
		right: 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 100upx;
		padding: 0 20upx;
		    background: #fff;
		&>input {
			padding: 20upx 20upx;
			border-radius: 10upx;
			flex: 1;
			background-color: #F7F7F7;
		}

		&>view {
			width: 80upx;
			flex-shrink: 0;
			text-align: center;
			font-size: 50upx;
		}
	}
</style>
